<?php
	if (ALLOW_EDITOR == true){
		$template->_template_assign("CAPTION_EDIT1", (string)$language->captions->value_5);
		$template->_template_assign("CAPTION_EDIT2", (string)$language->common->value_29);
		$template->_template_assign("CAPTION_EDIT3", (string)$language->common->value_30);
		$template->_template_assign("CAPTION_EDIT4", (string)$language->common->value_31);
		$template->_template_assign("CAPTION_EDIT5", (string)$language->buttons->value_6);
		
		switch($_GET["mode"]){
			case "edit":
				oyster_log("MSG", (string)$language->log_msgs->value_8, "Editor Main");
				$head->_template_assign("TITEL", (string)$language->titles->value_5);
				include("Applications/editor/Includes/edit.php");
			break;
			case "safe":
				oyster_log("MSG", (string)$language->log_msgs->value_8, "Editor Main");
				include("Applications/editor/Includes/safe.php");
			break;
			default:
				oyster_log("MSG", (string)$language->log_msgs->value_8, "Editor Main");
				$head->_template_assign("TITEL", (string)$language->titles->value_6);
				include("Applications/editor/Includes/new.php");
		}
	} else {
		oyster_log("ERROR", (string)$language->errors->value_20, "Editor Main");
		$head->_template_assign("ERROR", (string)$language->errors->value_20);
		$ordner = $_GET["path"];
		$included = true;
		include("System/Kernel/Includes/index.include.php");
	}
?>